<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
		 function Human(name){
			 this.name=name;
		 }
		 function Man(name,age){
			 Human.call(this,name);
			 this.age=age;
			 this.show=function(){
				 alert(this.name+","+this.age);
			 }
		 }
		 var m=new Man("Xiaowang",22);
		 m.show();
		 alert(m instanceof Human);
		 console.log(m);
		</script>
	</head>
	<body>
	</body>
</html>
